package cn.example.vip.mall.page.feign;

import cn.example.vip.mall.util.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-web-page", path = "/page", contextId = "mall-web-page-item-html")
public interface PageFeign {
	/**
	 * 静态页生成
	 */
	@GetMapping("/{id}")
	RespResult html(@PathVariable("id")String id) throws Exception;
	
	/**
	 * 删除静态页
	 */
	@DeleteMapping("/{id}")
	RespResult delHtml(@PathVariable("id")String id);
}
